<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle = Yii::app()->name . ' - Login';
?>
	
<div class="form">
	<?php $form=$this->beginWidget('CActiveForm', array(
		'id'=>'login-form',
		'enableClientValidation' => true,
		'clientOptions'=>array('validateOnSubmit'=>true),
	)); ?>
	<div class="row">
		<?php echo $form->error($model,'username'); ?>
		<?php echo $form->error($model,'password'); ?>		
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
	</div>

	<div class="row buttons">
		<label></label><?php echo CHtml::submitButton('Zaloguj',array('class'=>'FormButton')); ?>
	</div>

	<?php $this->endWidget(); ?>
</div>
